package com.penghaisoft.microwms.product.web.controller.expose;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.penghaisoft.microwms.common.controller.BaseController;
import com.penghaisoft.microwms.common.data.model.ProSellOut;
import com.penghaisoft.microwms.common.dto.TransResult;
import com.penghaisoft.microwms.common.page.Pager;
import com.penghaisoft.microwms.product.service.IProSellOutService;

/**
 * @Package com.penghaisoft.microwms.material.web.expose.controller
 * @ClassName: ExposeScreenController
 * @Description: 成品大屏
 * @author luoteng
 * @date 2018年11月22日 下午2:58:18
 */
@RestController
@RequestMapping(value = "/expose/screen")
public class ExposeScreenController extends BaseController {

	@Autowired
	private IProSellOutService proSellOutServiceImpl;

	/**
	 * @Title: listOutWhModelType
	 * @Description: 成品出库型号统计明细
	 * @date 2018年11月23日 上午9:41:36
	 * @param page
	 * @param rows
	 * @param rawStorageSn
	 * @return TransResult
	 */
	@PostMapping("modeltype/outwh/list")
	public TransResult listOutWhModelType(@RequestParam(name = "page", defaultValue = "1") int page,
			@RequestParam(name = "rows", defaultValue = "10") int rows, ProSellOut proSellOut) {
		Pager<ProSellOut> result = proSellOutServiceImpl.listOutWhModelType(page, rows, proSellOut);
		return success(result);
	}
}
